import request from '@/utils/request'

export function getExamList(searchData) {
  return request({
    url: '/exam/list',
    method: 'post',
    data: searchData
  });
}

export function deleteExam(id) {
  return request({
    url: '/exam/delete',
    method: 'get',
    params: {"id": id}
  });
}

export function detailExam(id) {
  return request({
    url: '/exam/detail',
    method: 'get',
    params: {"id": id}
  });
}

export function addExam(searchData) {
  return request({
    url: '/exam/add',
    method: 'post',
    data: searchData
  });
}
